package com.xhwl.centiotdata.suppliersystem.welink.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xhwl.common.utils.DateUtils;
import lombok.Data;

import java.util.Collections;
import java.util.Date;
import java.util.List;

/**
 * @Author: luyi
 * @Description:
 * @Date: Create in 9:42 2021/11/18
 */
@Data
public class AttendanceQuery {

	@JSONField(serialzeFeatures = SerializerFeature.WriteMapNullValue)
	private List<String> userIdList = Collections.emptyList();

	@JSONField(format="yyyy-MM-dd HH:mm:ss", serialzeFeatures = SerializerFeature.WriteMapNullValue)
	private Date startTime = DateUtils.nextMonth(-1);

	@JSONField(format="yyyy-MM-dd HH:mm:ss", serialzeFeatures = SerializerFeature.WriteMapNullValue)
	private Date endTime = new Date();

	private Integer limit;

	private Integer offset;

}
